package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户（小程序）对象 pa_wx_user
 *
 * @author ruoyi
 * @date 2024-08-19
 */
@ApiModel(value = "客户（小程序）")
public class PaWxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long wxUserId;

    /** 微信名称 */
    @Excel(name = "微信名称")
    @ApiModelProperty(value = "微信名称")
    private String nickname;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    /** open_id */
    @Excel(name = "open_id")
    @ApiModelProperty(value = "open_id")
    private String openId;

    /** 性别 */
    @Excel(name = "性别")
    @ApiModelProperty(value = "性别")
    private String gender;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号")
    private String phone;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${comment}")
    private String unionid;

    /** 1小程序 2公众号 */
    @Excel(name = "1小程序 2公众号")
    @ApiModelProperty(value = "1小程序 2公众号")
    private String userType;

    /** 版本号 */
    @Excel(name = "版本号")
    @ApiModelProperty(value = "版本号")
    private Integer version;

    public void setWxUserId(Long wxUserId)
    {
        this.wxUserId = wxUserId;
    }

    public Long getWxUserId()
    {
        return wxUserId;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setAvatarUrl(String avatarUrl)
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl()
    {
        return avatarUrl;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setUnionid(String unionid)
    {
        this.unionid = unionid;
    }

    public String getUnionid()
    {
        return unionid;
    }
    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserType()
    {
        return userType;
    }
    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public Integer getVersion()
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("wxUserId", getWxUserId())
                .append("nickname", getNickname())
                .append("avatarUrl", getAvatarUrl())
                .append("openId", getOpenId())
                .append("gender", getGender())
                .append("phone", getPhone())
                .append("unionid", getUnionid())
                .append("userType", getUserType())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("version", getVersion())
                .toString();
    }
}
